package uk.ac.bath.machines.bool;

import uk.ac.bath.legacy.Operator;
import uk.ac.bath.legacy.Value;
import uk.ac.bath.legacy.VectorState;

abstract class ConstantOperator extends Operator {


    public void tick(VectorState in,VectorState out) {
        eval(out.at(0));
    }

    public void tick(VectorState in,VectorState out,int map[]) {
        eval(out.v[map[0]]);
    }


    public int getParamSize() {
        return 0;
    }

    abstract public void eval(Value result);
    abstract public Object clone(); 
}
